#include <cstdio>
#include <iostream>
#include <cmath>
using namespace std;
double a, b, s, m, n;
int main()
{
    while (scanf("%lf%lf%lf%lf%lf", &a, &b, &s, &m, &n), a || b || s || m || n)
    {
        double angle = atan((b * n) / (a * m));
        double v = b * n / (s * sin(angle));
        printf("%.2lf %.2lf\n", angle / acos(-1.0) * 180, v);
    }
    return 0;
}